//
//  ViewController.m
//  FKMeituan
//
//  Created by 云眼科技 on 16/7/14.
//  Copyright © 2016年 CloudEyes. All rights reserved.
//

#import "ViewController.h"
#import "FKMenuView.h"

#ifndef W_H_
#define kWidth [UIScreen mainScreen].bounds.size.width
#define kHeight [UIScreen mainScreen].bounds.size.height
#endif

NSString *str(NSString *title){
    return [NSString stringWithFormat:@"%@▲", title];
}

@interface ViewController ()<FKMenuViewDelegate>

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    FKMenuView *menuView = [[FKMenuView alloc] initWithFrame:CGRectMake(0, 100, kWidth, 30) itemsTitleArray:@[@"2", @"23", @"3"]];
    menuView.delegate = self;
    [self.view addSubview:menuView];
}

-(void)menuView:(FKMenuView *)menuView didSelectedItemAtIndex:(NSInteger)index{
    NSLog(@"选中了%ld个", index + 1);
}


@end
